<ion-header>
    <ion-toolbar>
        <ion-searchbar placeholder="搜索"></ion-searchbar>
    </ion-toolbar>
</ion-header>
<ion-content *ngIf="res">
    <ion-refresher slot="fixed" (ionRefresh)="doRefresh($event)">
        <ion-refresher-content></ion-refresher-content>
    </ion-refresher>
    <ion-item *ngFor="let item of res.data" lines="full" button detail [routerLink]="['/detail',{lid:item.lid}]">
        <img [src]="'http://101.96,128.94:9999/'+item.pic" alt="" slot="start" style="width: 70px;height:70px;">
        <ion-label>
            <h4>{{item.title}}</h4>
            <p style="color:red;margin-right:10px;">￥{{item.price}}</p>
        </ion-label>
    </ion-item>
    <ion-infinite-scroll threshold="25%" [disabled]="res.pno>=res.pageCount" position="bottom" (ionInfinite)="loadData($event)">
        <ion-infinite-scroll-content loadingSpinner="bubbles" loadingText="加载中...">
        </ion-infinite-scroll-content>
    </ion-infinite-scroll>
    <ion-button expand="full" disabled>
        没有更多数据
    </ion-button>
</ion-content>